package models;

import java.util.Collection;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.OrderBy;

import play.db.jpa.Model;

@Entity
public class Caracteristica extends Model {

	@OrderBy
	public String descricao;
	
	@ManyToMany(mappedBy="caracteristicas")
	public List<Imovel> imovels;

	@Override
	public String toString() {
		return "Caracteristica descricao=" + descricao + ", imovels="
				+ imovels;
	} 
	
}
